package com.shkco.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.shkco.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {

    public static User orderBlockHandler(@PathVariable("id") Long id, BlockException e){
        return new User(-1L,"限流咯","请稍后重试");
    }
}
